package com.example.api.dao;

import com.example.api.model.entity.Admin;

import java.util.List;

public interface AdminDao {

    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    List<Admin> findAll(Integer id, String name);

    Admin selectAdminByEmail(String email);

    Admin selectAdminByEmailAndPassword(String email, String password);

    Admin selectAdminByName(String username);

}